版权声明:本文为博主原创文章,转载请注明出处:http://blog.jerkybible.com/2013/09/08/2013-09-08-CODE 1 Palindrome Partitioning II/
Given a strings, partitionssuch that every substring of the partition is a palindrome.
Return the minimum cuts needed for a palindrome partitioning ofs.
For example, givens="aab"
,
Return1
since the palindrome partitioning["aa","b"]
could be produced using 1 cut.
|
|